// components/InstallComponent/SubmitLater/SubmitLater.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    isSkip: {
      type: Number,
      value: 0
    },
    appid: {
      type: String,
      value: ''
    },
    pageUrl: {
      type: String,
      value: ''
    },
    infer: {
      type: String,
      value: ''
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    stateList: [{
      id: 0,
      state: 1,
      title: "推文"
    }, {
      id: 1,
      state: 2,
      title: "小程序"
    }, {
      id: 2,
      state: 0,
      title: "不跳转"
    }]

  },

  /**
   * 组件的方法列表
   */
  methods: {
    headleOption(e) {
      let {
        state
      } = e.currentTarget.dataset
      this.triggerEvent('headleOption', state)
    },
    headleAppid(e) {
      this.triggerEvent('headleAppid', e)
    }
  }
})